<div class="navbar navbar-inverse" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<a class="navbar-brand" href="/">HENUOJ</a>
			<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
		</div>
		<div class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
			<ul class="nav navbar-nav">
				<li class="home <if condition='$cate eq "index"'>active</if>">
					<a href="<{:U('Index/index')}>">主页</a>
				</li>
				<li <if condition='$cate eq "problem"'>class="active"</if>>
					<a href="<{:U('Index/problem')}>">题目列表</a>
				</li>
				<li <if condition='$cate eq "status"'>class="active"</if>>
					<a href="<{:U('Index/status')}>">运行状态</a>
				</li>
				<li <if condition='$cate eq "rank"'>class="active"</if>>
					<a href="<{:U('Index/rank')}>">排名</a>
				</li>
				<li <if condition='$cate eq "contest"'>class="active"</if>>
					<a href="<{:U('Index/contest')}>">比赛</a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right nav-controls">
				<li <if condition='$cate eq "login"'>class="active"</if>>
					<a href="<{:U('Index/login')}>" data-no-turbolink="">登录</a>
				</li>
				<li <if condition='$cate eq "register"'>class="active"</if>>
					<a href="<{:U('Index/register')}>" data-no-turbolink="">注册</a>
				</li>
			</ul>
		</div>
		<!--/.nav-collapse -->
	</div>
</div>